##
# Nginx
#
# VERSION 1.6.2
# 
# use the ubuntu base image
##

FROM ubuntu
MAINTAINER Sean<sean.snow@live.com>

#Add 163 sources.list
ADD 163.sources.list /etc/apt/sources.list

RUN apt-get update && apt-get install -y nginx

# Define mountable directories. 
VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/var/log/nginx", "/var/www/html"] 

# Define working directory. 
WORKDIR /etc/nginx 

# Define default command. 
CMD ["nginx"] 

# 80 and 443 port
EXPOSE 80
EXPOSE 443
